package cn.net.shuxing.yifu.common.mapper;

import cn.net.shuxing.yifu.common.bean.CityAgentCommission;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.math.BigDecimal;

public interface CityAgentCommissionMapper extends Mapper<CityAgentCommission> {


    Integer updateByUserId(@Param("userId") Long userId, @Param("province") Integer province, @Param("city") Integer city, @Param("district") Integer district,
                           @Param("commRate") BigDecimal commRate);

    CityAgentCommission selectByUserId(@Param("userId") Long userId);

    Integer updateCumulativeComm(@Param("userId") Long userId,@Param("cumulativeComm") BigDecimal cumulativeComm);

    Integer updateUnsettledComm(@Param("userId") Long userId,@Param("unsettledComm") BigDecimal unsettledComm);
}
